Ext.define('Admin.store.logger.LogListStore', {
    extend: 'Ext.data.Store',
    alias: 'store.logListStore',
    model: 'Admin.model.logger.Log',

    pageSize: 20,

    proxy: {
        type: 'ajax',
        url: 'log/searchLog',
        reader: new Ext.data.JsonReader({
            type: 'json',
            rootProperty: 'content',
            totalProperty: 'totalElements'
        }),
        simpleSortMode: true
    },

    remoteSort: true,
    autoLoad: true,

    sorters: [{
        property: 'oprateTime',
        direction: 'DESC'
    }]

});